@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Asimovian&family=Caudex:ital,wght@0,400;0,700;1,400;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* Root Variables */

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #ea580c;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-color: #374151;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 0.75rem;
    --transition: all 0.3s ease;
    --font-primary: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}


/* Global Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
}


/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}


/* Navigation */


/* Navigation */

.navbar {
    background: rgba(8, 27, 79, 0.33);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1px 0;
}

.navbar.scrolled {
    background: #1e3a8a;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}


/* Hero Section */

.hero-section {
    height: 80vh;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(209, 212, 217, 0.6)), url('assets/img/bg1.jpeg') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: var(--transition);
}


/* Desktop (>1024px) */

@media (min-width: 1025px) {
    .hero-title {
        font-size: 60px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .hero-buttons .btn {
        font-size: 18px;
        padding: 12px 30px;
    }
}


/* Tablet (768px - 1024px) */

@media (min-width: 768px) and (max-width: 1024px) {
    .hero-title {
        font-size: 45px;
    }
    .hero-subtitle {
        font-size: 16px;
        max-width: 400px;
    }
    .hero-buttons .btn {
        font-size: 16px;
        padding: 10px 25px;
    }
    .construction-shape {
        text-align: center;
        margin-top: 30px;
    }
}


/* Mobile (<768px) */

@media (max-width: 767px) {
    .hero-section {
        text-align: center;
        padding: 60px 20px;
        min-height: auto;
    }
    .hero-title {
        font-size: 32px;
        line-height: 1.3;
        margin-top: 2%;
    }
    .hero-subtitle {
        font-size: 14px;
        max-width: 100%;
        margin: 20px auto;
    }
    .hero-buttons .btn {
        font-size: 14px;
        padding: 8px 20px;
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    .col-lg-4.d-none.d-lg-block {
        display: block !important;
        margin-top: 30px;
    }
    .construction-shape img {
        max-width: 45%;
        margin: 0 auto;
    }
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}


/* Animations */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* About Section */

.feature-item {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stats-row .counter {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}


/* Service Cards */

.service-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}


/* Project Cards */

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 280px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(60px);
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
}


/* Contact Section */

.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-control {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-info-card {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info-card h5 {
    margin: 1rem 0;
    color: var(--dark-color);
}

.contact-info-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}


/* Testimonials */

.carousel-item {
    padding: 2rem 0;
}

.blockquote {
    border: none;
    margin-bottom: 0;
}

.blockquote p {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.blockquote-footer {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}


/* Footer */

footer {
    margin-top: auto;
}


/* Utility Classes */

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Custom Bootstrap Overrides */

.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}


/* Loading Animation for counters */

.counter {
    transition: all 0.8s ease;
}


/* Typing Animation Style */

.typing-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    border-right: 3px solid #fff;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .typing-text {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .typing-text {
        font-size: 1.5rem;
    }
}

.word-animation {
    font-size: 1.1rem;
    color: #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.word-animation span {
    opacity: 0;
    transform: translateY(10px);
    display: inline-block;
    animation: wordFade 0.5s forwards;
}

@keyframes wordFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive text size */

@media (max-width: 768px) {
    .word-animation {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .word-animation {
        font-size: 0.95rem;
    }
}

footer.footer {
    border-radius: 60px 60px 0 0;
    /* Creates rounded top edges */
    overflow: hidden;
    /* Ensures background stays inside shape */
}

.animate-up {
    animation: floatUp 6s ease-in-out infinite;
}

.animate-down {
    animation: floatDown 6s ease-in-out infinite;
}

@keyframes floatUp {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatDown {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(15px);
    }
}

#who-we-are {
    perspective: 2000px;
    /* Enable 3D effect */
}

.book-image {
    width: 100%;
    max-width: 280px;
    height: 380px;
    overflow: hidden;
    transform-style: preserve-3d;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    backface-visibility: hidden;
    transform-origin: center center;
}


/* Desktop (>1024px) */

@media (min-width: 1025px) {
    .book-image {
        max-width: 280px;
        height: 380px;
    }
    .book-image img {
        object-fit: cover;
    }
}


/* Tablet: 768px - 1024px */

@media (min-width: 768px) and (max-width: 1024px) {
    .book-image {
        max-width: 220px;
        height: 300px;
    }
    .book-image img {
        object-fit: cover;
    }
}


/* Mobile: <768px */

@media (max-width: 767px) {
    .book-image {
        max-width: 320px;
        height: 180px;
        margin: 0 auto;
        /* center on small screens */
    }
    .book-image img {
        object-fit: cover;
    }
}


/* Initial state (closed like a book) */

.left-page {
    transform: rotateY(90deg);
    opacity: 0;
}

.right-page {
    transform: rotateY(-90deg);
    opacity: 0;
}


/* When visible, animate like opening */

.left-page.show {
    animation: openLeft 1.2s ease forwards;
}

.right-page.show {
    animation: openRight 1.2s ease forwards;
}

@keyframes openLeft {
    from {
        transform: rotateY(90deg);
        opacity: 0;
    }
    to {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

@keyframes openRight {
    from {
        transform: rotateY(-90deg);
        opacity: 0;
    }
    to {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

.floating-shape {
    max-width: 100%;
    height: auto;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

#who-we-are {
    background: url("assets/img/building-sketch.jpg") no-repeat center center/cover;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#who-we-are .bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.955);
    z-index: -1;
}


/* Decorative SVG Icons */

@media (max-width: 768px) {
    .construction-icons .icon {
        width: 40px;
        height: 40px;
        opacity: 0.15;
    }
}

@media (max-width: 576px) {
    .construction-icons {
        display: none;
    }
    /* hide icons on very small screens */
}


/* Background */

#mission-vision {
    background: linear-gradient(135deg, #f9fafc 40%, #eef3f9 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}


/* Optional subtle pattern */

#mission-vision::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("assets/img/pattern.png") repeat;
    opacity: 0.05;
    z-index: -1;
}


/* Glass-style cards */

.card-glass {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}


/* Image animations */

.float-up {
    animation: floatUp 5s ease-in-out infinite;
}

.float-down {
    animation: floatDown 6s ease-in-out infinite;
}

@keyframes floatUp {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatDown {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(20px);
    }
}


/* Decorative Premium Icons */

.decorative-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.decorative-icons .icon {
    position: absolute;
    font-size: 3rem;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.25;
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.6));
    animation: floatIcon 10s linear infinite;
}

.icon-1 {
    top: 10%;
    left: 90%;
    animation-delay: 0s;
}

.icon-2 {
    bottom: 15%;
    right: 10%;
    animation-delay: 3s;
}

.icon-3 {
    top: 30%;
    right: 5%;
    animation-delay: 6s;
}

.icon-4 {
    bottom: 40%;
    left: 90%;
    animation-delay: 9s;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}


/* Responsive */


/* Desktop (>1024px) */

@media (min-width: 1025px) {
    #mission-vision h2 {
        font-size: 38px;
    }
    #mission-vision p {
        font-size: 16px;
    }
    .image-wrapper img.float-up {
        max-height: 320px;
    }
    .image-wrapper img.float-down {
        max-height: 280px;
    }
}


/* Tablet: 768px - 1024px */

@media (min-width: 768px) and (max-width: 1024px) {
    #mission-vision {
        padding: 60px 20px;
    }
    #mission-vision h2 {
        font-size: 32px;
    }
    #mission-vision p {
        font-size: 15px;
    }
    .card-glass {
        padding: 20px;
    }
    .image-wrapper img.float-up {
        max-height: 260px;
    }
    .image-wrapper img.float-down {
        max-height: 220px;
    }
}


/* Mobile: <768px */

@media (max-width: 767px) {
    #mission-vision {
        padding: 40px 15px;
    }
    #mission-vision h2 {
        font-size: 26px;
        text-align: center;
    }
    #mission-vision p {
        font-size: 14px;
        text-align: center;
    }
    .card-glass {
        margin-bottom: 20px;
        padding: 15px;
    }
    .row.align-items-center {
        flex-direction: column;
    }
    .col-lg-6 {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    .image-wrapper img.float-up,
    .image-wrapper img.float-down {
        max-width: 80%;
        margin: 10px auto;
        height: 230px;
    }
    .decorative-icons .icon {
        font-size: 2rem;
    }
}

#founders {
    background: linear-gradient(135deg, #f9f9f9 40%, #eef3f9 100%);
}

.founder-img-wrap {
    width: 350px;
    height: 350px;
    overflow: hidden;
    margin: 0 auto;
    /* square shape - no rounded corners */
}

.founder-img-wrap.large {
    width: 100%;
    height: 70%;
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.text-center p {
    font-size: 18px;
    font-weight: 400;
}


/* Responsive */

@media (max-width: 767px) {
    .founder-img-wrap {
        width: 160px;
        height: 160px;
    }
    .founder-img-wrap.large {
        width: 220px;
        height: 220px;
    }
    .text-center p {
        font-size: 18px;
        font-weight: 400;
    }
}

@media (max-width: 576px) {
    .founder-img-wrap {
        width: 190px;
        height: 190px;
    }
    .founder-img-wrap.large {
        width: 210px;
        height: 210px;
    }
    .text-center p {
        font-size: 16px;
        margin-left: 11%;
        font-weight: 400;
        /* color: black; */
        margin-right: 11%;
    }
}

.vertical-text {
    position: absolute;
    top: -50px;
    bottom: -50px;
    width: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    font-weight: 900;
    font-size: 34px;
    color: #fff;
    text-transform: uppercase;
    padding: 15px;
    letter-spacing: 3px;
    opacity: 0.95;
    z-index: 1;
    transform-origin: center;
}

.vertical-text.left {
    left: 0;
    background: #0d6efd;
    animation: scrollDown 10s linear infinite;
}

.vertical-text.right {
    right: 0;
    background: #ffc107;
    animation: scrollUp 10s linear infinite;
}


/* Scroll Animations */

@keyframes scrollDown {
    0% {
        transform: translateY(-120%) rotate(0deg);
    }
    100% {
        transform: translateY(120%) rotate(0deg);
    }
}

@keyframes scrollUp {
    0% {
        transform: translateY(120%) rotate(0deg);
    }
    100% {
        transform: translateY(-120%) rotate(0deg);
    }
}


/* Responsive Styles */


/* Tablet: 768px - 1024px */

@media (max-width: 1024px) {
    .vertical-text {
        width: 70px;
        font-size: 28px;
        padding: 10px;
    }
}


/* Mobile: up to 767px */

@media (max-width: 767px) {
    .vertical-text {
        width: 50px;
        font-size: 20px;
        padding: 6px;
    }
    /* Optional: slower scroll on small screens */
    .vertical-text.left {
        animation: scrollDown 15s linear infinite;
    }
    .vertical-text.right {
        animation: scrollUp 15s linear infinite;
    }
}


/* ================== About Section ================== */


/* Tablet: 768px - 1024px */

@media (min-width: 768px) and (max-width: 1024px) {
    #about {
        padding-bottom: 30px;
    }
    .about-content h2.section-title {
        font-size: 32px;
        text-align: center;
    }
    .about-content p.lead {
        font-size: 18px;
        text-align: center;
    }
    .feature-item {
        font-size: 14px;
        justify-content: center;
    }
    .stats-row h3 {
        font-size: 24px;
    }
    .stats-row p {
        font-size: 13px;
    }
    .row.align-items-center {
        flex-wrap: wrap;
    }
    #about img {
        max-width: 90%;
        margin: 20px auto 0;
        display: block;
    }
}


/* Mobile: <768px */

@media (max-width: 767px) {
    #about {
        padding-bottom: 20px;
    }
    .about-content h2.section-title {
        font-size: 26px;
        text-align: center;
    }
    .about-content p.lead {
        font-size: 14px;
        text-align: center;
    }
    .feature-item {
        font-size: 13px;
        justify-content: center;
        margin-bottom: 10px;
    }
    .stats-row h3 {
        font-size: 20px;
    }
    .stats-row p {
        font-size: 12px;
    }
    .row.align-items-center {
        flex-direction: column;
    }
    #about img {
        max-width: 80%;
        margin: 15px auto 0;
        display: block;
        height: auto;
    }
}


/* Contact Section */

.contact-section {
    background: linear-gradient(135deg, #022239 0%, #400d0d 100%);
    position: relative;
    overflow: hidden;
}


/* Floating labels */

.floating-input {
    border: 1px solid #ced4da;
    border-radius: 0.75rem;
    padding: 1.2rem 1rem 0.5rem 1rem;
    width: 100%;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.floating-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.2);
}

.floating-label {
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    color: #6c757d;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s ease all;
}

.floating-input:focus+.floating-label,
.floating-input:not(:placeholder-shown)+.floating-label {
    top: -0.5rem;
    left: 0.9rem;
    font-size: 0.8rem;
    color: #0d6efd;
    background: #fff;
    padding: 0 0.3rem;
}


/* Button animation */

.submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.submit-btn:hover::after {
    left: 0;
}

.submit-btn:hover {
    transform: translateY(-3px);
}


/* Map */

.map-wrapper iframe {
    border-radius: 0.75rem;
}


/* Decorative shapes & icons */

.contact-bg-shapes .shape,
.contact-bg-shapes .icon {
    position: absolute;
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
    font-size: 2.5rem;
    color: #0d6efd;
}

.contact-bg-shapes .shape1 {
    width: 120px;
    height: 120px;
    background: #0d6efd;
    top: -20px;
    left: -20px;
    border-radius: 50%;
}

.contact-bg-shapes .shape2 {
    width: 80px;
    height: 80px;
    background: #ffc107;
    top: 50%;
    left: 80%;
    border-radius: 50%;
}

.contact-bg-shapes .shape3 {
    width: 60px;
    height: 60px;
    background: #0d6efd;
    bottom: 10%;
    left: 30%;
    border-radius: 50%;
}

.contact-bg-shapes .icon1 {
    top: 20%;
    left: 10%;
    animation-duration: 6s;
}

.contact-bg-shapes .icon2 {
    top: 60%;
    left: 20%;
    animation-duration: 8s;
}

.contact-bg-shapes .icon3 {
    top: 30%;
    left: 80%;
    animation-duration: 7s;
}

.contact-bg-shapes .icon4 {
    top: 70%;
    left: 70%;
    animation-duration: 9s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}


/* Responsive */


/* Tablet */

@media (min-width: 768px) and (max-width: 1024px) {
    .contact-section {
        padding: 60px 20px;
    }
    .map-wrapper iframe {
        height: 220px;
    }
}


/* Mobile */

@media (max-width: 767px) {
    .contact-section {
        padding: 40px 15px;
    }
    .contact-form,
    .contact-info {
        padding: 20px;
    }
    .map-wrapper iframe {
        height: 200px;
    }
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* full cover */
    background: rgba(0, 0, 0, 0.5);
    /* black overlay with 50% opacity */
    z-index: 1;
}

.hero-content {
    animation: slideInUp 1s ease-out;
}

.hero-title {
    font-family: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.text-accent {
    color: hwb(39 20% 0%);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--light-color);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    border: none;
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: var(--white);
    position: relative;
    animation: scroll-bounce 2s infinite;
}

.scroll-arrow:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
}

@keyframes scroll-bounce {
    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.7;
    }
}


/* Section Titles */

.section-title {
    font-family: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}


/* About Section */

.about-section {
    background: var(--white);
    padding: 5rem 0;
}

.about-content {
    padding-right: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-heavy);
}


/* Mobile responsive adjustment */

@media (max-width: 992px) {
    /* Bootstrap lg breakpoint */
    .about-section .row {
        flex-direction: column;
        /* stack text and image vertically */
        align-items: flex-start;
        /* align text to left */
    }
    .about-section .about-image-wrapper {
        margin-top: 280px;
        /* space between text/stats and image */
        text-align: center;
        /* center image */
    }
    .about-section .about-image img {
        width: 150%;
        /* reduce image size */
        max-width: 400px;
        /* optional maximum width */
        height: auto;
        /* maintain aspect ratio */
    }
    /* Shimmer + Glass Effect */
    .about-image-wrapper {
        perspective: 1000px;
        /* gives a 3D depth to child elements */
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 2rem;
    }
    /* 3D Cube style */
    .about-image.back {
        position: relative;
        transform-style: preserve-3d;
        /* allows children to render in 3D */
        width: 250px;
        /* cube width */
        height: 250px;
        /* cube height */
        transition: transform 0.5s ease, box-shadow 0.5s ease;
    }
    /* The image itself */
    .about-image.back img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        /* floating shadow */
        transform: translateZ(20px);
        /* gives thickness/depth */
        transition: transform 0.5s ease;
    }
    /* Optional: hover floating effect */
    .about-image.back:hover img {
        transform: translateZ(40px) rotateX(5deg) rotateY(5deg);
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4);
    }
    /* Optional: extra edges */
    .about-image.back::before,
    .about-image.back::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 2px solid rgba(255, 255, 255, 0.4);
        /* edge highlight */
        border-radius: 12px;
        pointer-events: none;
        transform: translateZ(-10px);
    }
    /* Glass shimmer overlay */
    .about-image::after {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 120deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.2) 100%);
        transform: rotate(25deg);
        animation: shimmer 3s infinite;
        pointer-events: none;
        overflow: hidden;
    }
}


/* Keep text and image side by side */

.row.align-items-center {
    display: flex;
    flex-wrap: nowrap;
    /* prevent wrapping */
}


/* Optional: add spacing so text is not stuck to left */

.col-lg-6:first-child {
    padding-right: 30px;
}


/* Make image responsive */

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* Animations (unchanged) */


/* Initial hidden state */

.animate-heading,
.animate-text,
.animate-number {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}


/* Triggered when section enters viewport */

.start-animation {
    opacity: 1;
    transform: translateY(0);
}


/* Delays so they appear one after another */

.animate-heading.start-animation {
    transition-delay: 0.3s;
}

.animate-text.start-animation {
    transition-delay: 0.6s;
}

.animate-number.start-animation:nth-child(1) {
    transition-delay: 0.9s;
}

.animate-number.start-animation:nth-child(2) {
    transition-delay: 1.2s;
}

.animate-number.start-animation:nth-child(3) {
    transition-delay: 1.5s;
}


/* Portfolio Section */

.portfolio-section {
    background: var(--light-color);
    padding: 5rem 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.portfolio-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.portfolio-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.portfolio-item.large .portfolio-image {
    height: 100%;
    min-height: 600px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 0.9;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    text-align: center;
    color: var(--white);
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-content h4,
.portfolio-content h5 {
    font-family: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 0.5rem;
}

.portfolio-content .fas {
    font-size: 2rem;
    margin-top: 1rem;
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}

.portfolio-item:hover .portfolio-content .fas {
    opacity: 1;
    transform: rotate(90deg);
}


/* Services Section */

.services-section {
    background: var(--white);
    padding: 5rem 0;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(360deg);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h4 {
    font-family: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-hover {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2.5rem;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .service-hover {
    top: 0;
}

.service-hover ul {
    list-style: none;
    padding: 0;
}

.service-hover li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-hover li:last-child {
    border-bottom: none;
}


/* Process Section */

.process-section {
    background: var(--light-color);
    padding: 5rem 0;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-timeline:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.process-step.animate {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-medium);
}

.step-content h4 {
    font-family: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}


/* Testimonials Section */

.testimonials-section {
    background: var(--white);
    padding: 5rem 0;
}

.video-testimonial {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.video-testimonial video {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.testimonial-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 2rem;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.video-testimonial:hover .testimonial-overlay {
    transform: translateY(0);
}

.text-testimonials {
    position: relative;
    height: 400px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
    background: var(--light-color);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
}

.stars {
    margin-bottom: 1rem;
}

.stars i {
    color: var(--accent-color);
    margin-right: 0.25rem;
}

.testimonial-content p {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h6 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.testimonial-nav {
    text-align: center;
    margin-top: 2rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}


/* Gallery Section */

.gallery-section {
    background: var(--dark-color);
    padding: 5rem 0;
}

.gallery-section .section-title {
    color: var(--white);
}

.gallery-section .section-subtitle {
    color: var(--text-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.gallery-item.large img {
    height: 100%;
    min-height: 600px;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-content {
    text-align: center;
    color: var(--white);
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.view-project {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.view-project i {
    transition: all 0.3s ease;
}

.gallery-item:hover .view-project i {
    transform: translateX(5px);
}

footer {
    margin-top: auto;
}

footer.footer {
    border-radius: 60px 60px 0 0;
    /* Creates rounded top edges */
    overflow: hidden;
    /* Ensures background stays inside shape */
}

.blockquote-footer {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.animate-heading,
.animate-text,
.animate-number {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

.start-animation {
    opacity: 1;
    transform: none;
}

.stat-number {
    font-weight: 800;
}

.services-hero {
    position: relative;
    height: 80vh;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85), rgba(59, 130, 246, 0.7)), url('../am builders/images/project.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.services-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.services-hero .hero-content {
    position: relative;
    z-index: 2;
}

.services-hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.services-hero .hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 700px;
}

.services-hero .hero-buttons {
    margin-top: 1.5rem;
}


/* Tablet (≤ 992px) */

@media (max-width: 992px) {
    .services-hero {
        height: 70vh;
        text-align: center;
        padding: 0 1rem;
    }
    .services-hero .hero-title {
        font-size: 2.5rem;
    }
    .services-hero .hero-subtitle {
        font-size: 1.1rem;
        margin: 0 auto;
    }
    .services-hero .hero-buttons {
        justify-content: center;
    }
}


/* Mobile (≤ 576px) */

@media (max-width: 576px) {
    .services-hero {
        height: auto;
        padding: 4rem 1rem 3rem;
    }
    .services-hero .hero-title {
        font-size: 1.8rem;
    }
    .services-hero .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    .services-hero .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(30, 58, 138, 0.85);
    /* Bootstrap primary color */
    color: #fff;
    font-size: 22px;
    border: none;
    border-radius: 50%;
    padding: 12px 15px;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    /* hidden by default */
    transition: all 0.3s ease-in-out;
}

.scroll-top:hover {
    background: rgba(125, 131, 148, 0.85);
    transform: scale(1.1);
}


/* Responsive Adjustments */

@media (max-width: 768px) {
    .scroll-top {
        bottom: 15px;
        right: 15px;
        font-size: 20px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .scroll-top {
        bottom: 12px;
        right: 12px;
        font-size: 18px;
        padding: 8px 10px;
    }
}

.property-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* makes equal height cards */
}

.property-card:hover {
    transform: translateY(-8px);
}

.property-image-box {
    width: 100%;
    height: 200px;
    /* reduced height */
    overflow: hidden;
    background: #ddd;
    /* fallback */
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-info {
    padding: 20px;
    flex-grow: 1;
    /* makes info stretch */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-info h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.property-meta {
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.property-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #007bff;
    margin: 10px 0;
}

.property-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
}

.property-detail-box {
    background: #f1f1f1;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.property-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    font-size: 0.9rem;
    text-align: center;
}

.property-btn:hover {
    background: #0056b3;
}

.floating-contact {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1200;
}

.contact-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #0e2772;
    /* WhatsApp green */
    color: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.contact-btn:hover {
    transform: scale(1.1);
}

.contact-menu {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 10px;
}

.contact-menu a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    margin: 6px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s;
}

.contact-menu a:hover {
    transform: scale(1.1);
}


/* WhatsApp */

.contact-menu a.whatsapp {
    background: #25d366;
}


/* Instagram official gradient */

.contact-menu a.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

@media (max-width: 768px) {
    .contact-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    .contact-menu a {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
}


/* Oval Gradient Filled Button */

.gradient-btn {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: white;
    border: none;
    border-radius: 50px;
    /* Oval shape */
    padding: 10px 30px;
    /* Wider padding for oval effect */
    transition: all 0.3s ease;
    font-weight: 500;
}

.gradient-btn:hover {
    background: linear-gradient(45deg, #2575fc, #6a11cb);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* Oval Outline Button with solid border */

.gradient-outline-btn {
    background: transparent;
    color: #2575fc;
    border: 2px solid #2575fc;
    /* Solid border */
    border-radius: 50px;
    /* Oval shape */
    padding: 10px 30px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.gradient-outline-btn:hover {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* Navbar Background */

#mainNavbar {
    background-color: #000;
    /* Adjust your theme */
    padding: 8px 15px;
}


/* Mobile Horizontal Menu */

.mobile-horizontal-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    /* spacing between links */
    overflow-x: auto;
    white-space: nowrap;
    align-items: center;
    scrollbar-width: none;
    /* hide scrollbar Firefox */
}

.mobile-horizontal-menu::-webkit-scrollbar {
    display: none;
    /* hide scrollbar Chrome/Safari */
}


/* Mobile Menu Links */

.mobile-horizontal-menu .nav-link {
    color: #fff;
    font-size: 0.9rem;
    /* smaller font size for single line */
    font-weight: 500;
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.3s, transform 0.2s;
}

.mobile-horizontal-menu .nav-link:hover {
    color: #ffc107;
    transform: translateY(-2px);
}


/* Adjust logo size on mobile */

@media (max-width: 992px) {
    #mainNavbar .navbar-brand img {
        height: 45px;
        width: 65px;
    }
}


/* Navbar background */

#mainNavbar {
    background-color: #000;
    padding: 8px 15px;
    height: 60px;
}


/* Scrolling menu wrapper: ensures it doesn't cover the logo */

.scrolling-menu-wrapper {
    overflow: hidden;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
}


/* Scrolling menu content */

.scrolling-menu {
    display: inline-flex;
    gap: 10px;
    /* space between links */
    white-space: nowrap;
    animation: scroll-left 15s linear infinite;
}


/* Menu links */

.scrolling-menu .nav-link {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.scrolling-menu .nav-link:hover {
    color: #ffc107;
}


/* Animation: Right to Left */

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* Adjust logo and font size on mobile */

@media (max-width: 992px) {
    #mainNavbar .navbar-brand img {
        height: 45px;
        width: 65px;
    }
    .scrolling-menu .nav-link {
        font-size: 0.85rem;
    }
}

.hero-buttons .btn {
    font-size: 1rem;
    padding: 10px 20px;
    cursor: pointer;
}

.projects .list-group-item {
    padding: 10px 15px;
    margin-bottom: 5px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.hero {
    text-align: center;
    padding: 0 20px;
    background: #f5f5f5;
}

.hero-title {
    font-size: 2.5rem;
    /* Desktop size */
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.2rem;
    /* Desktop size */
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 30px auto;
}


/* Hero Buttons */

.hero-buttons .btn {
    font-size: 1rem;
    padding: 10px 25px;
    white-space: nowrap;
    /* Keep single line */
    text-align: center;
    cursor: pointer;
}


/* Responsive for Mobile */

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
        /* Smaller heading */
        white-space: nowrap;
        /* Keep single line */
    }
    .hero-description {
        font-size: 1rem;
        /* Smaller paragraph */
        max-width: 90%;
    }
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}


/* Navbar background */

#mainNavbar {
    background-color: #000;
    padding: 8px 15px;
    height: 60px;
}


/* Scrolling menu wrapper */

.scrolling-menu-wrapper {
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
}


/* Scrolling menu content */

.scrolling-menu {
    display: inline-flex;
    gap: 40px;
    white-space: nowrap;
}


/* Menu links */

.scrolling-menu .nav-link {
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.scrolling-menu .nav-link:hover {
    color: #ffc107;
}


/* Mobile: Enable infinite scroll */

@media (max-width: 992px) {
    .scrolling-menu {
        animation: scroll-left 30s linear infinite;
    }
}


/* Desktop: No animation (stagnant) */

@media (min-width: 993px) {
    .scrolling-menu {
        animation: none;
    }
}


/* Animation: Right-to-left */

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* Logo adjustment for mobile */

@media (max-width: 992px) {
    #mainNavbar .navbar-brand img {
        height: 45px;
        width: 65px;
    }
}


/* Navbar background */

#mainNavbar {
    background-color: #000;
    padding: 8px 15px;
    height: 60px;
}


/* Scrolling menu wrapper */

.scrolling-menu-wrapper {
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
}


/* Menu links container */

.scrolling-menu {
    display: inline-flex;
    gap: 20px;
    white-space: nowrap;
    position: relative;
    /* Desktop static by default */
    animation: none;
}


/* Menu links */

.scrolling-menu .nav-link {
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.scrolling-menu .nav-link:hover {
    color: #ffc107;
}


/* Desktop: static, single set */

@media (min-width: 993px) {
    .scrolling-menu {
        animation: none;
    }
}


/* Mobile: continuous right-to-left scroll */

@media (max-width: 992px) {
    .scrolling-menu {
        animation: scroll-left 10s linear infinite;
    }
    /* Duplicate content visually for seamless scroll */
    .scrolling-menu::after {
        content: '';
        display: inline-block;
        width: 100%;
        /* same width as original links */
    }
}


/* Animation: right-to-left continuous */

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* Logo adjustment for mobile */

@media (max-width: 992px) {
    #mainNavbar .navbar-brand img {
        height: 55px;
        width: 70px;
    }
}


/* Navbar background */

#mainNavbar {
    background-color: rgba(8, 27, 79, 0.333);
    padding: 8px 15px;
    height: 85px;
}

#mainNavbar.scrolled {
    background: #1e3a8a;
    box-shadow: var(--shadow);
}

#mainNavbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
}

#mainNav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

#mainNav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}


/* Scrolling menu wrapper */

.scrolling-menu-wrapper {
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
}


/* Menu links container */

.scrolling-menu {
    display: inline-flex;
    gap: 15px;
    white-space: nowrap;
}


/* Menu links */

.scrolling-menu .nav-link {
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.scrolling-menu .nav-link:hover {
    color: #ffc107;
}


/* Desktop: static, links on extreme right */

@media (min-width: 993px) {
    .scrolling-menu-wrapper {
        justify-content: flex-end;
        /* right aligned */
    }
    .scrolling-menu {
        animation: none;
        /* no scroll */
    }
}


/* Mobile: continuous right-to-left scroll */

@media (max-width: 992px) {
    .scrolling-menu-wrapper {
        justify-content: flex-start;
    }
    .scrolling-menu {
        animation: scroll-left 10s linear infinite;
    }
    /* Clone links visually for seamless infinite scroll */
    .scrolling-menu::after {
        content: '';
        display: inline-block;
        width: 100%;
    }
}


/* Animation: right-to-left continuous */

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    text-align: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.stat-item {
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #b37100;
    display: inline-flex;
    align-items: baseline;
}

.stat-number .plus {
    font-size: 2.5rem;
    margin-left: 4px;
    color: #b37100;
}

.count {
    display: inline-block;
    transform: translateY(6px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.count[data-animated="true"] {
    transform: translateY(0);
    opacity: 1;
}